package com.goldcn.sys.dao;

import com.goldcn.sys.dto.SysConfigRedisDto;
import com.goldcn.sys.model.SysConfigExt;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

;

public interface SysConfigExtMapper {
    int deleteByPrimaryKey(Long extID);

    int insert(SysConfigExt record);

    int insertSelective(SysConfigExt record);

    SysConfigExt selectByPrimaryKey(Long extID);

    int updateByPrimaryKeySelective(SysConfigExt record);

    int updateByPrimaryKey(SysConfigExt record);

    int insertBatch(@Param(value = "paramList") List<SysConfigExt> list);

    int deleteByCompanyInfoID(@Param(value = "companyInfoID") Long companyInfoID);

    List<SysConfigExt> searchByCompanyInfoID(@Param(value = "companyInfoID") Long companyInfoID);

    Map<String,Object> getValByCode(@Param(value = "companyInfoID") Long companyInfoID, @Param(value = "code") String code);

    List<Map<String,Object>> getMapByCompanyInfoID(@Param(value = "companyInfoID") Long companyInfoID, @Param(value = "startupEnabled") Integer startupEnabled);

    List<SysConfigRedisDto> getRedisMap(@Param(value = "startupEnabled") Integer startupEnabled);

    List<SysConfigExt> selectAllExtForApp(@Param(value = "companyInfoID") Long companyInfoID);
}